<template>
  <view>
    地址列表   
  </view>
</template>

<script lang="ts">
  import {defineComponent} from 'vue'

  export default defineComponent({
    name:'list',
  })
</script>

<script setup lang="ts">
  import { onLoad } from '@dcloudio/uni-app';
import {findUserAddress} from '../../../Api/address'

  onLoad(()=>{
    getAddress()
  })
  async function getAddress(){
    try {
      const res = await findUserAddress()
      
      console.log(res)
      if(res.code === 200){
        console.log(res.data)
      }
    } catch (error) {
      console.log(error)
    }
  }
</script>

<style scoped>
  
</style>